Beyond ASCII - Parsing Programs with Graphical Presentations
نویسندگان
چکیده
Proxima is a generic structure editor suitable for a wide range of structured document types. It allows edit operations on the document structure as well as on its screen representation (i.e. free-text editing), without the need to switch between the two modes. The system maintains a bidirectional mapping between the document structure and its presentation. Besides obvious applications, such as word-processor and spread-sheet editors, Proxima is especially well-suited for defining source editors for programming languages. Presentation-oriented edit operations require that an edited presentation can be parsed to yield an updated document structure. However, conventional parsing techniques cannot readily be applied, since presentations in Proxima are not restricted to text but may also contain graphical elements. For example, an exponential may be presented as 3. Although this graphical presentation may not be directly edited at the presentation level, its components may. Hence, instead of simply parsing the changed representation, we have to take into account the existing structure. This paper explains the scanning and parsing process for presentations that are a possibly nested combination of text and graphical elements. For textual parts of the presentation a Haskell combinator parser needs to be provided. The parser for graphical parts, on the other hand, is constructed by Proxima, based on information in the presentation. White space in the presentation can be handled automatically, if desired.
منابع مشابه
Liberating programming from the ASCII view
We present the xbVLISP programming environment currently under development in our laboratory which integrates textual, graphical and analogical representations of programs. This environment should be of help during the development of programs (including the handling of unfinished and/or erroneous programs), the observation of their execution (through the capacity of animating the various repres...
متن کاملASCII Art Synthesis with Convolutional Networks (final copy)
ASCII art is a type of graphic art that presents a picture with printable characters. It is commonly used for graphical presentations in text-based media. ASCII art can be categorized into two major styles: one is tone based, and the other is structure based. Tone-based ASCII art represents the intensity distribution of the original images by using the density of the characters. In contrast, st...
متن کاملSoftware for microbial fingerprinting by means of the infrared spectra
Two computer programs were designed for helping in library handling and microbial identification by means of their infrared spectra. The program 'Transform' runs in the IR Data Manager environment and produces ASCII files containing transformed data from infrared absorbance spectra. The program 'WinSpectra' is written in Visual Basic v. 3.0. It imports the ASCII files created with 'Transform', ...
متن کاملSVMT: A MATLAB toolbox for stereo-vision motion tracking of motor reactivity
This article presents a Matlab-based stereo-vision motion tracking system (SVMT) for the detection of human motor reactivity elicited by sensory stimulation. It is a low-cost, non-intrusive system supported by Graphical User Interface (GUI) software, and has been successfully tested and integrated in a broad array of physiological recording devices at the Human Physiology Laboratory in the Univ...
متن کاملGenview and Gencode: a pair of programs to test theories of genetic code evolution
GENVIEW: and GENCODE: are tools for testing the adaptive nature of a genetic code under different assumptions about patterns of genetic error and the nature of amino acid similarity. GENVIEW: provides a user friendly, point-and-click interface by which a user may reproduce and extend analysis of the adaptive properties of the standard genetic code or any of its secondary derivatives. GENVIEW: i...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
- J. UCS
دوره 14 شماره
صفحات -
تاریخ انتشار 2008